﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Lehnet.WebUI.Helpers;

namespace Lehnet.WebUI.CustomAttributes
{
    public class MusteriPersonelAuthorizeAttribute : AuthorizeAttribute
    {
        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            if (SessionHelper.MusteriPersoneli == null)
                return false;
            return true;
        }
    }
}